package com.vueblog.webapi.request;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author lsj
 * @create 2021-05-20 23:46
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
public class CreateCommentInfoRequest {

    /**
     * 博文id
     */
    @NotNull
    private Long blogId;

    /**
     * 父评论id
     */
    private Long parentCommentId;

    /**
     * 内容
     */
    @NotEmpty
    private String content;

    /**
     * 邮箱
     */
    @NotEmpty
    private String email;

    /**
     * 昵称
     */
    @NotEmpty
    private String nickname;

    /**
     * 回复的昵称
     */
    private String replyNickname;

}
